// 指针所占大小
#include <stdio.h>
int main(int argc, char **argv)
{
    char *p1 = NULL;

    int *p2 = NULL;

    float *p3 = NULL;

    void *p4 = NULL;

    // 输出指针所占大小
    printf("%lu\n", sizeof(p1));
    printf("%lu\n", sizeof(p2));
    printf("%lu\n", sizeof(p3));
    printf("%lu\n", sizeof(p4));
    return 0;
}